package com.ruoyi.labsafety.mapper;

import java.util.List;
import com.ruoyi.labsafety.domain.LabSafetyCheckForm;

/**
 * 安全检查单Mapper接口
 * 
 * @author winner pan
 * @date 2022-03-27
 */
public interface LabSafetyCheckFormMapper 
{
    /**
     * 查询安全检查单
     * 
     * @param instanceId 安全检查单ID
     * @return 安全检查单
     */
    public LabSafetyCheckForm selectLabSafetyCheckFormById(Long instanceId);

    /**
     * 查询安全检查单列表
     * 
     * @param labSafetyCheckForm 安全检查单
     * @return 安全检查单集合
     */
    public List<LabSafetyCheckForm> selectLabSafetyCheckFormList(LabSafetyCheckForm labSafetyCheckForm);

    /**
     * 新增安全检查单
     * 
     * @param labSafetyCheckForm 安全检查单
     * @return 结果
     */
    public int insertLabSafetyCheckForm(LabSafetyCheckForm labSafetyCheckForm);

    /**
     * 修改安全检查单
     * 
     * @param labSafetyCheckForm 安全检查单
     * @return 结果
     */
    public int updateLabSafetyCheckForm(LabSafetyCheckForm labSafetyCheckForm);

    /**
     * 删除安全检查单
     * 
     * @param instanceId 安全检查单ID
     * @return 结果
     */
    public int deleteLabSafetyCheckFormById(Long instanceId);

    /**
     * 批量删除安全检查单
     * 
     * @param instanceIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteLabSafetyCheckFormByIds(Long[] instanceIds);

    int updateApproval(Long instanceId);
    
    public List<LabSafetyCheckForm> selectImmediatelyCheckForm();
}
